package org.example.erpapicommon.Util.Param;

import org.example.erpapicommon.Util.PageQueryParam;

public class ProductQueryParam extends PageQueryParam {
//    名称（模糊查询）、品牌（模糊查询）、分类（使用分类编号，结果应包含该编号下的全部子分类）、
//    产品单价范围（最低价、最高价）、是否仅包含有货产品（是/否）。
    protected static final String[] orderFields = new String[]{"id"};
    protected static final String[] allowOrderDirections = new String[]{"ASC", "DESC"};
    protected String name;

    protected String brand;
    protected String categoryId;

    protected Integer lowPrice;

    protected Integer highPrice;
    protected boolean unitsInStock;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getLowPrice() {
        return lowPrice;
    }

    public void setLowPrice(Integer lowPrice) {
        this.lowPrice = lowPrice;
    }

    public Integer getHighPrice() {
        return highPrice;
    }

    public void setHighPrice(Integer highPrice) {
        this.highPrice = highPrice;
    }

    public boolean isUnitsInStock() {
        return unitsInStock;
    }

    public void setUnitsInStock(boolean unitsInStock) {
        this.unitsInStock = unitsInStock;
    }
}
